package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface UserDao {
    public User findByUsername(String username);

    public Page<User> selectByCondition(String queryString);

    void add(User user);

    User findById(Integer id);

    void edit(User user);

    long findCountByCheckItemId(Integer id);

    void deleteById(Integer id);


    void addroles(@Param("id") Integer id, @Param("roleId")Integer roleId);

    Integer findId(User user);
}
